package com.wing.product.model.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.wing.mybatis.common.BaseEntity;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

@Schema(description="加工质检表")
@Data
@EqualsAndHashCode(callSuper=true)
@TableName(value = "warehouse_quality_testing")
public class WarehouseQualityTesting extends BaseEntity<WarehouseQualityTesting> {

    @TableField(value = "code")
    @Schema(description="质检编号")
    private String code;

    @TableField(value = "product_id")
    @Schema(description="生产产品id")
    private Long productId;

    @TableField(value = "customer_product_code")
    @Schema(description="生产客户产品料号")
    private String customerProductCode;

    @TableField(value = "production_line_id")
    @Schema(description="生产线id")
    private Long productionLineId;

    @TableField(value = "workshop_id")
    @Schema(description="工位id")
    private Long workshopId;

    @TableField(value = "processing_report_id")
    @Schema(description="加工报工记录id")
    private Long processingReportId;

    @TableField(value = "production_order_id")
    @Schema(description="所属生产订单id")
    private Long productionOrderId;

    @TableField(value = "production_order_number")
    @Schema(description="所属生产订单编号")
    private String productionOrderNumber;

    @TableField(value = "customer_id")
    @Schema(description="客户id")
    private Long customerId;

    @TableField(value = "quality_testing_type_id")
    @Schema(description="质检类型id")
    private Long qualityTestingTypeId;

    @TableField(value = "quality_testing_category_id")
    @Schema(description="质检分类id")
    private Long qualityTestingCategoryId;

    @TableField(value = "quality_inspection_nature_id")
    @Schema(description="质检性质id")
    private Long qualityInspectionNatureId;

    @TableField(value = "production_plan_code")
    @Schema(description="生产计划编号")
    private String productionPlanCode;

    @TableField(value = "production_plan_detail_code")
    @Schema(description="制造令编号")
    private String productionPlanDetailCode;

    @TableField(value = "status")
    @Schema(description="1.待出库2.已出库")
    private Integer status;

}
